package types

type Predicate = func(value T, index int, array []T) bool

var Identity = func(v T) Predicate {
	return func(value T, index int, array []T) bool {
		return value == v
	}
}
